﻿#region Copyrigth and License
/*==============================================================================
 *  Copyright (c) cndotnet.org Corporation.  All rights reserved.
 * ===============================================================================
 * This code and information is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the implied warranties
 * of merchantability and fitness for a particular purpose.
 * ===============================================================================
 * Licensed under the GNU General Public License (GPL) v2
 * http://www.cndotnet.org/ezsocio
 * ==============================================================================*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CNdotnet.Ezsocio.ContactService.LiveID {
    #region LiveContract类用于描述msn联系人
    /// <summary>
    /// MsnContract类用于描述msn联系人
    /// </summary>
    [XmlNodeMapping(XmlNodeName = "Contacts/Contact")]
    [DataContract]
    public class LiveContract {
        #region Fields
        #endregion

        #region Constructors
        #endregion

        #region Properties
        /// <summary>
        /// ID:一个串(GUID),用于唯一标识一位联系人
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "ID")]
        [DataMember]
        public string ID {
            get;
            set;
        }
        /// <summary>
        /// 联系人的LiveID
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "WindowsLiveID")]
        [DataMember]
        public string WindowsLiveID {
            get;
            set;
        }
        /// <summary>
        /// 是否开启自动更新
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "AutoUpdateEnabled")]
        [DataMember]
        public bool AutoUpdateEnabled {
            get;
            set;
        }
        /// <summary>
        /// 上次更新时间
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "LastChanged")]        
        public DateTime LastChanged {
            get;
            set;
        }
        /// <summary>
        /// Profiles是msn联系人信息中的一部分,主要包括:UniqueName,SortName,NickName,DisplayName
        /// </summary>  
        [DataMember]
        public Personal Profiles {
            get;
            set;
        }
        /// <summary>
        /// Emails是msn联系人信息中的一部分,主要包括:ID,EmailType,Address,IsIMEnabled,IsDefault
        /// </summary>   
        [DataMember]
        public Email Emails {
            get;
            set;
        }
        /// <summary>
        /// 联系人所在组编号
        /// </summary>
        [DataMember]
        public string GroupID {
            get;
            set;
        }
        #endregion

        #region Events
        #endregion        
    }
    #endregion
}
